package com.aios.dao;

import com.aios.entity.DaySchedule;
import com.aios.entity.DayScheduleExample;
import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface DayScheduleMapper {
    int countByExample(DayScheduleExample example);

    int deleteByExample(DayScheduleExample example);

    int deleteByPrimaryKey(String id);

    int insert(DaySchedule record);

    int insertSelective(DaySchedule record);

    List<DaySchedule> selectByExample(DayScheduleExample example);

    DaySchedule selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") DaySchedule record, @Param("example") DayScheduleExample example);

    int updateByExample(@Param("record") DaySchedule record, @Param("example") DayScheduleExample example);

    int updateByPrimaryKeySelective(DaySchedule record);



    int updateByPrimaryKey(DaySchedule record);
    
	@Select("SELECT DAY_OF FROM day_schedule WHERE TIMER_ID=#{id}")
	List<Integer> findByTimerId(@Param("id") String id);
	
	
	int deleteByTimerIdAndDayOf(@Param("id") String id,@Param("i") int i);

	void deleteByTimerId(String id);
	
	
}